import Layout from '@/views/layout/Layout'
/**
 * @author qun.xu
 * @desc   系统管理路由
 * @date   2018-11-20
 */
const truckRouter = {
    path: '/truck',
    component: Layout,
    meta: {
        title: '卡车管理',
        icon: 'truck',
        perm:'truck'
    },
    children: [
        {
            path: 'editor',
            component: () => import('@/views/pages/truck/TruckEditor'),
            name: 'TruckEditor', //必须和组件中的name对应，要不然不缓存
            hidden:true,
            meta: { title: '新增卡车',noCache:true,icon:'role',perm:'truck:edit'}
        },
        {
            path: 'visitorList',
            component: () => import('@/views/pages/truck/VisitorList'),
            name: 'VisitorList', //必须和组件中的name对应，要不然不缓存
            hidden:true,
            meta: { title: '访问记录',noCache:true,icon:'role',perm:'truck:edit'}
        },
        {
            path: 'audit/list',
            component: () => import('@/views/pages/truck/AuditList'),
            name: 'AuditList',//卡车审核
            meta: { title: '卡车审核',noCache:true,icon:'audit-list',perm:'truck:audit'}
        },
        {
            path: 'audit',
            component: () => import('@/views/pages/truck/Audit'),
            name: 'Audit', //必须和组件中的name对应，要不然不缓存
            hidden: true,
            meta: { title: '审核',noCache:false}
        },
        {
            path: 'list',
            component: () => import('@/views/pages/truck/TruckList'),
            name: 'TruckList',
            meta: { title: '卡车列表',noCache:true,icon:'truck-list',perm:'truck:list'}
        }
    ]
}
export default truckRouter
